<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        .mouseplace{
            width: 500px;
            height: 500px;
            background-color: gray;
        }
        .div_big{
            width: 100px;
            height: 100px;
            background-color: yellow;
        }
        .div_small{
            width: 50px;
            height: 50px;
            background-color: blanchedalmond;
        }
    </style>
</head>
<body>
    <!--v-on:可以用@代替-->
    <div id="root">
        <button type="button" v-on:click="add(3)">+</button>
        <input type="text" :value="num" />
        <button type="button" v-on:click="reduce(3)">-</button>
    </div>

    <div id="root1">
        <h2>
            坐标:({{x}},{{y}})
        </h2>
        <div class="mouseplace" @mousemove="mousehandle">
        </div>
    </div>
    
    <div id="root2">
        <div class="div_big" @click="bighandle">
            <div class="div_small" @click.stop="smallhandle"></div>
        </div>
    </div>

    <div id="root3">
        <a href="http://www.baidu.com" @click="abtn">
            百度
        </a>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@3.2.31/dist/vue.global.js"></script>
    <script src="./0325.js"></script>
   
</body>
</html>